package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.sta.StaModelDto;
import com.ysd.lis.dto.sta.StaModelParam;
import com.ysd.lis.dto.sta.StaRoleDto;
import com.ysd.lis.dto.sta.StaRoleParam;
import com.ysd.lis.service.sta.StaRoleModuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2025-01-06
 */
@Api(tags = "标准角色模块")
@RestController
@RequestMapping("/lis/sta/staRoleModule")
public class StaRoleModuleController extends BaseController {

    @Autowired
    StaRoleModuleService staRoleModuleService;


    @ApiOperation("查询")
    @GetMapping("/findStaRoleModuleList")
    public Result findStaRoleModuleList(StaRoleParam param){
        return staRoleModuleService.findStaRoleModuleList(param);
    }

    @ApiOperation("批量新增")
    @PostMapping("/batchAddStaRoleModuleList")
    public Result batchAddStaRoleModuleList(@RequestBody StaRoleDto dto){
        return  staRoleModuleService.batchAddStaRoleModuleList(dto);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStaRoleModuleList")
    public Result batchDeleteStaRoleModuleList(@RequestBody StaRoleDto dto){
        return  staRoleModuleService.batchDeleteStaRoleModuleList(dto);
    }
}
